//package com.ctrip.ec.api.admin.aop;
//
//import com.ctrip.ec.api.admin.common.RequestContext;
//import com.ctrip.ec.api.admin.common.UnauthorizedException;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.stereotype.Component;
//
//
///**
// * Created by jiang on 2018/9/23.
// */
//@Aspect
//@Component
//public class AuthAspect {
//    @Pointcut("@annotation(AuthLogin)")
//    public void before(){}
//
//    @Before("before()")
//    public void beforeAdvide(JoinPoint point){
//
//        if(RequestContext.getUserId() == null){
//            throw new UnauthorizedException("未登录或已经超时");
//        }
//
//        //throw new ValidateException("aop error");
//    }
//
//}
